/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package overlaynetwork;

import java.net.*;
import java.util.*;


public class Peer {

    private InetSocketAddress address;
    private boolean state;
    private boolean connect;
    private Vector<InetSocketAddress> connectPeer;

    public Peer(InetSocketAddress address){
        this.address = address;
        state = true;
        connectPeer = new Vector<InetSocketAddress>();

    }

    public boolean isCrashed(){
        return state;
    }

    public void state(boolean state){
        this.state = state;
    }

    public void connect(boolean connect){
        this.connect = connect;
    }

    public boolean isConnect(){
        return connect;
    }

    public InetSocketAddress getInetSocketAddress(){
        return address;
    }





}
